package com.gxa.pingan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 退款表实体类
 *
 * @author lijianmin
 * @date 2021/10/25  11:15:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Refund {
    /**
     * 编号
     */
    @ApiModelProperty(name = "id", value = "id", notes = "编号", dataType = "String",example = "编号")
    private Long id;
    /**
     * 订单号
     */
    @ApiModelProperty(name = "orderNum", value = "orderNum", notes = "订单号", dataType = "String",example = "订单号")
    private String orderNum;
    /**
     * 订单日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "orderTime", value = "orderTime", notes = "订单日期", dataType = "Timestamp",example = "订单日期")
    private Timestamp orderTime;
    /**
     * 客户
     */
    @ApiModelProperty(name = "client", value = "client", notes = "客户", dataType = "String",example = "客户")
    private String client;
    /**
     * 司机
     */
    @ApiModelProperty(name = "driver", value = "driver", notes = "司机", dataType = "String",example = "司机")
    private String driver;
    /**
     * 服务类型
     */
    @ApiModelProperty(name = "serType", value = "serType", notes = "服务类型", dataType = "String",example = "服务类型")
    private String serType;
    /**
     * 订单金额
     */
    @ApiModelProperty(name = "orderMoney", value = "orderMoney", notes = "订单金额", dataType = "Long",example = "订单金额")
    private Long orderMoney;
    /**
     * 退款金额
     */
    @ApiModelProperty(name = "refMoney", value = "refMoney", notes = "退款金额", dataType = "Long",example = "退款金额")
    private Long refMoney;
    /**
     * 订单状态
     * 0：退款中\1：已拒绝\2：退款完成  跟操作(驳回/同意退款)相关
     */
    @ApiModelProperty(name = "orderType", value = "orderType", notes = "订单状态", dataType = "Integer",example = "订单状态")
    private Integer orderType;
    /**
     * 理由
     * 退款理由
     */
    @ApiModelProperty(name = "reason", value = "reason", notes = "理由", dataType = "String",example = "理由")
    private String reason;
    /**
     * 申请日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "appTime", value = "appTime", notes = "申请日期", dataType = "Timestamp",example = "申请日期")
    private Timestamp appTime;
    /**
     * 驳回理由
     * 驳回操作-同时改变订单状态
     */
    @ApiModelProperty(name = "rejReason", value = "rejReason", notes = "驳回理由", dataType = "String",example = "驳回理由")
    private String rejReason;

    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "updateTime", value = "updateTime", notes = "修改日期", dataType = "Timestamp",example = "修改日期")
    private Timestamp updateTime;
}
